import ACTIONTYPES from '@redux/config/action.types.js';
import Request from '@service/ajax.js';
import Tools from '@untils/tools.jsx';
import {USERAPIS} from '@apis/index.js';

const _req = new Request();

const userMsgAction = (data = {}) => async (dispatch) => {
    let options = Tools.objectAssign(USERAPIS.USERPERMI, data);
    let resData = await _req.axios(options);
    return dispatch({
        type: ACTIONTYPES.USER_MESSAGES,
        payload: resData
    });
};

export default {
    userMsgAction
}


